package com.lsh.oms.core.enums;

/**
 *
 * @author peter
 * @date 19/12/31
 */
public enum MisOrderType {

	/**
     *
	 */
	USER_ORDER(1, "用户订单"),
	MP_ORDER(2, "美批订单"),
	USER_SHIPPING(3, "发货单"),
	USER_RECEIPT(4, "签收单"),
	USER_RO(5, "返仓单"),
	USER_WAY(6, "运单"),
	USER_SALE_RO(7, "售后返仓单"),
	USER_RETURN(8, "退货单");

	private final int code;
	private final String name;

	MisOrderType(int code, String name) {
		this.code = code;
		this.name = name;
	}

	public static String getName(int code) {
		for (MisOrderType c : MisOrderType.values()) {
			if (c.getCode() == code) {
				return c.name;
			}
		}
		return null;
	}

	public int getCode() {
		return code;
	}

	public String getName() {
		return name;
	}
}
